package com.geekaca.db.mapper;

import com.geekaca.db.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    User selectUsers(@Param("userName") String name);

    int updateUsers(User user);

    int deleteById(@Param("userId") Integer id);

    List<User> selectUsersByIds(@Param("ids") int[] ids);

    // 登录验证
    User selectByNamePass(@Param("username") String username, @Param("password") String password);
}
